package com.witdata.common.mapper;

import com.witdata.common.domain.dto.InstanceDto;
import com.witdata.mysql.domain.entity.TInstance;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface InstanceMapper {

    InstanceMapper INSTANCE = Mappers.getMapper(InstanceMapper.class);

    TInstance toTInstance(InstanceDto instanceDto);

    InstanceDto toInstanceDto(TInstance tInstance);

    List<InstanceDto> toInstanceDtoList(List<TInstance> tInstanceList);
}
